package com.ithema.dao.impl;

import com.ithema.dao.UserDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//<bean id="userDao" class="com.ithema.dao.impl.UserDaoImpl"></bean>
//@Component("userDao")
@Repository("userDao")
//@Scope("singleton")
public class UserDaoImpl implements UserDao {

    @Value("注入普通数据")
    private String str;
    /*@Value("${jdbc.driver}")
    private String driver;*/


    @Override
    public void save() {
        System.out.println(str);
       // System.out.println(driver);
        System.out.println("save running..");
    }
}
